<div class="path"><i class="iconfont">&#xf108;</i>  <a href="{url('admin/default/welcome')}">开始</a> {$sitename} / <a href="{url('index/index')}">自定义单页</a> / <a href="{url('adlook/index',array('id' => $ad))}">{$adinfo['title']}</a></div>
<div class="m10">
<div class="table-head"><a href="{url('adlook/index',array('id'=>$ad))}" class="button"> <i class="iconfont">&#xf053;</i> 返回</a><strong>广告位管理</strong></div>
<form id="form" action="{url('adlook/edit')}">
<input type="hidden" name="ad" value="{$ad}"/>   
<input type="hidden" name="fid" value="{$id}"/>   
<table class="table">
    <tr><th>广告名称:</th><td><input class="input w300" datatype="*" type="text" name="name" value="{$info['name']}" /></td></tr  
{if $adinfo['types'] != 'TXT'}
    <tr><th></th><td><input type="button" class="button ui-upload" uid="content" value="选择要上传的广告内容文件" /></td></tr>
{/if}
    <tr><th>广告资源内容:</th><td><textarea class="textarea w500 h80" datatype="*" name="content" id="content" />{$info['content']}</textarea></td></tr>
 {if $adinfo['types'] = 'SWF'}
    <tr><th>链接地址:</th><td><input class="input w500" datatype="*" type="text" name="url" value="{$info['url']}" /></td></tr>
{/if}
    <tr><th>投放开始时间:</th><td><input class="input w140 ui-date" datatype="date" type="text" name="starttime" value="{if $info['starttime']}{date('Y/m/d H:s',$info['starttime'])}{/if}" /></td></tr>
    <tr><th>投放结束时间:</th><td><input class="input w140 ui-date" datatype="date" type="text" name="endtime" value="{if $info['starttime']}{date('Y/m/d H:s',$info['endtime'])}{/if}" /></td></tr>
</table>
<div class="btn fn-tac">
    <input type="submit" value="确定保存" class="button button-blue" />
    <input type="reset" value="重置" class="button button-yellow" />
</div>
</form>
</div>
<script type="text/javascript">
Do('base','form','date','dialog',function(){ 
    $('#form').forms({types:'post',uploads:'{url('uploads/index')}'});
})
</script>